package FunctionPackage;

import BookListPackage.BookList;

public class Display implements Function {
    @Override
    public void work(BookList bookList) {
        System.out.println("显示图书！");

        for (int i = 0; i < bookList.amount; i++) {
            System.out.println(bookList.books[i]);
        }
        System.out.println("----------展示成功！-----------");
    }
}
